import request from '@/utils/request.js'

//收藏和取消收藏
export const updateCollection = (id) =>
  request.post(`/api/collects/goods/${id}`)

//我的收藏
export const mineCollection = (page = 1) =>
  request.get(`/api/collects?page=${page}`)
